package com.fire.cloud_getway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.gateway.route.RouteLocator;
import org.springframework.cloud.gateway.route.builder.RouteLocatorBuilder;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@EnableDiscoveryClient
public class CloudGetwayApplication {

    public static void main(String[] args) {
        SpringApplication.run(CloudGetwayApplication.class, args);
    }

//    @Bean
//    public RouteLocator creareRuouter(RouteLocatorBuilder builder){
//       return builder.routes().route("path_paroxy_1",r-> r.path("/test")
//                .uri("https://www.baidu.com")).build();
//    }

}
